<!doctype HTML public "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- Click to Convert 5.2: Anything to HTML -->
<!-- http://www.clicktoconvert.com -->

<html>
<head>
<title>gravityboxscheduleuserguide - page 158 of 234</title>
<meta http-equiv=content-type content=text/html;charset=iso-8859-1>
<meta name="Generator" content="Click to Convert">

<!--Start of page styles-->
<STYLE TYPE="text/css">
<!--
 /* Foreground Image Styles */
 .style158p514{position:absolute;left:202px;top:661px}

 /* Position Styles */
 .ts158p0{position:absolute;left:106px;top:97px;}
 .ts158p1{position:absolute;left:352px;top:97px;}
 .ts158p3{position:absolute;left:665px;top:97px;}
 .ts158p7{position:absolute;left:106px;top:113px;}
 .ts158p8{position:absolute;left:706px;top:1026px;}
 .ts158p9{position:absolute;left:331px;top:1044px;}
 .ts158p13{position:absolute;left:106px;top:147px;}
 .ts158p15{position:absolute;left:106px;top:165px;}
 .ts158p17{position:absolute;left:106px;top:183px;}
 .ts158p19{position:absolute;left:106px;top:201px;}
 .ts158p20{position:absolute;left:106px;top:220px;}
 .ts158p22{position:absolute;left:106px;top:238px;}
 .ts158p23{position:absolute;left:106px;top:256px;}
 .ts158p25{position:absolute;left:106px;top:275px;}
 .ts158p26{position:absolute;left:106px;top:293px;}
 .ts158p27{position:absolute;left:106px;top:312px;}
 .ts158p29{position:absolute;left:106px;top:330px;}
 .ts158p30{position:absolute;left:106px;top:349px;}
 .ts158p33{position:absolute;left:106px;top:367px;}
 .ts158p35{position:absolute;left:106px;top:386px;}
 .ts158p37{position:absolute;left:106px;top:404px;}
 .ts158p39{position:absolute;left:106px;top:422px;}
 .ts158p41{position:absolute;left:106px;top:440px;}
 .ts158p42{position:absolute;left:106px;top:458px;}
 .ts158p44{position:absolute;left:106px;top:477px;}
 .ts158p45{position:absolute;left:106px;top:495px;}
 .ts158p47{position:absolute;left:106px;top:532px;}
 .ts158p48{position:absolute;left:106px;top:550px;}
 .ts158p50{position:absolute;left:106px;top:569px;}
 .ts158p51{position:absolute;left:106px;top:587px;}
 .ts158p52{position:absolute;left:106px;top:605px;}
 .ts158p55{position:absolute;left:106px;top:624px;}
 .ts158p56{position:absolute;left:376px;top:641px;}
 .ts158p58{position:absolute;left:634px;top:858px;}
 .ts158p59{position:absolute;left:106px;top:872px;}
 .ts158p60{position:absolute;left:106px;top:891px;}
 .ts158p61{position:absolute;left:106px;top:909px;}
 .ts158p62{position:absolute;left:106px;top:927px;}
 .ts158p64{position:absolute;left:106px;top:946px;}
 .ts158p65{position:absolute;left:106px;top:964px;}
 .ts158p66{position:absolute;left:106px;top:983px;}

 /* Font Styles */
 .ft0p158{font-style:normal;font-weight:bold;font-size:13px;font-family:arial,sans-serif;color:#000000;}
 .ft1p158{font-weight:normal;}
 .ft2p158{font-style:normal;font-weight:normal;font-size:13px;font-family:"times new roman","times new roman",times,serif;color:#000000;}
 .ft3p158{font-style:normal;font-weight:normal;font-size:16px;font-family:"times new roman","times new roman",times,serif;color:#000000;}
 .ft4p158{font-style:normal;font-weight:bold;font-size:11px;font-family:arial,sans-serif;color:#000000;}
 .ft5p158{font-style:normal;font-weight:normal;font-size:16px;font-family:"courier new",courier,monospace;color:#000000;}
 .ft6p158{font-style:normal;font-weight:normal;font-size:16px;font-family:arial,sans-serif;color:#000000;}
 .ft7p158{font-style:normal;font-weight:bold;font-size:21px;font-family:arial,sans-serif;color:#808080;}
 .ft8p158{font-style:normal;font-weight:bold;font-size:16px;font-family:helvetica,arial,sans-serif;color:#000000;}

 /* Background Style */
 .styleBackground158{position:absolute;left:97px;top:145px}

 /* Navigation Styles */
 .styleNavBarTop{position:absolute;left:0px;top:2px}
 .nb{position:absolute;left:2px;top:0px}
 .nbs{position:absolute;left:0px;top:0px}
 .nbe{position:absolute;left:836px;top:0px}
 .styleNavBarBot{position:absolute;left:0px;top:1117px}
-->
</STYLE>
<!--End of page styles-->

</head>
<body bgcolor="#ffffff" text="#000000" link="#0000FF" Vlink="#660099">

<table id="pageTable" width="836" STYLE="position: relative; left: auto; top: auto;"><tr><td>
<div class=nbs><img src="./navbarstart.gif" width="2" height="30"></div>
<div class=nb><img src="./navbar.gif" width="836" height="30" alt="Navigation bar"></div>
<div class=nbe><img src="./navbarend.gif" width="2" height="30"></div>
<div class=styleNavBarTop>
<table width="834" height="26" border="0" cellspacing="0">
  <tr align="left">
    <td width="4">&nbsp;</td>
    <td width="25" align="center"><a href="http://www.gravitybox.com" target="_parent"><img src="./home.gif" border="0" alt="Home"></a></td>
    <td width="25" align="center"><a href="#" onClick="window.open('./print.html','Printing','width=300,height=100,toolbar=no,directories=no');return false;"><img src="./print.gif" border="0" alt="Print document"></a></td>
    <td width="10" align="center"><img src="./separator.gif" border="0"></td>
    <td width="18" align="center"><a href="./index1.html"><img src="./start.gif" width="18" height="14" border="0" alt="Start"></a></td>
    <td width="18" align="center"><a href="./index157.html"><img src="./back.gif" width="14" height="14" border="0" alt="Previous page"></a></td>
    <td width="80" valign="middle"><table width="100%" height="16" border="0" cellspacing="1" bgcolor="#ACA899"><tr><td align="center" bgcolor="#ffffff"><font face=verdana,arial,sans-serif><font size="1">&nbsp;158 of 234&nbsp;</font></font></td></tr></table></td>
    <td width="18" align="center"><a href="./index159.html"><img src="./forward.gif" width="14" height="14" border="0" alt="Next page"></a></td>
    <td width="18" align="center"><a href="./index234.html"><img src="./end.gif" width="18" height="14" border="0" alt="End"></a></td>
    <td width="620">&nbsp;</td>
  </tr>
</table>
<p>
</div>
<nobr>
<div class=styleBackground158><img src="./background158.png" width="633" height="910" border="0" alt=""></div>
<div class=style158p514><img src="./image158_514.png" width="432" height="212" border="0" alt=""></DIV>
<div class=ts158p0><span class="ft0p158"> </span></div>
<div class=ts158p1><span class="ft0p158">Gravitybox Schedule Primer<span class="ft1p158"> </span></span></div>
<div class=ts158p3><span class="ft0p158">Page 156&nbsp; </span></div>
<div class=ts158p7><span class="ft2p158"> </span></div>
<div class=ts158p8><span class="ft3p158"> </span></div>
<div class=ts158p9><span class="ft4p158">1998&#45;2004 Gravitybox Software LLC<span class="ft3p158"> </span></span></div>
<div class=ts158p13><span class="ft5p158">&nbsp;&nbsp; </span></div>
<div class=ts158p15><span class="ft5p158">&nbsp; End Select </span></div>
<div class=ts158p17><span class="ft5p158">&nbsp; Unload Me </span></div>
<div class=ts158p19><span class="ft5p158"> </span></div>
<div class=ts158p20><span class="ft5p158">End Sub </span></div>
<div class=ts158p22><span class="ft6p158"> </span></div>
<div class=ts158p23><span class="ft6p158">On the main contact form the Contacts collection must be saved when the user unloads </span></div>
<div class=ts158p25><span class="ft6p158">the form. This happens by clicking on another function like notes, tasks, or calendar; or </span></div>
<div class=ts158p26><span class="ft6p158">by closing the application all together. The QueryUnload event is used to save the </span></div>
<div class=ts158p27><span class="ft6p158">contact collection and deallocate the object. </span></div>
<div class=ts158p29><span class="ft6p158"> </span></div>
<div class=ts158p30><span class="ft5p158">Private Sub Form_QueryUnload(Cancel As Integer, _ </span></div>
<div class=ts158p33><span class="ft5p158">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; UnloadMode As Integer) </span></div>
<div class=ts158p35><span class="ft5p158">&nbsp;&nbsp; </span></div>
<div class=ts158p37><span class="ft5p158">&nbsp; Call oContacts.Save(ThisUser) </span></div>
<div class=ts158p39><span class="ft5p158">&nbsp; Set oContacts = Nothing </span></div>
<div class=ts158p41><span class="ft5p158"> </span></div>
<div class=ts158p42><span class="ft5p158">End Sub </span></div>
<div class=ts158p44><span class="ft6p158"> </span></div>
<div class=ts158p45><span class="ft7p158">Tasks </span></div>
<div class=ts158p47><span class="ft6p158">The next operation uses a control from the GbSchedule module. The TaskList control is </span></div>
<div class=ts158p48><span class="ft6p158">used to display any number of columns and the information in them. The tasks in this </span></div>
<div class=ts158p50><span class="ft6p158">program have been setup to display none or more of the following items: date, start </span></div>
<div class=ts158p51><span class="ft6p158">time, subject, notes, and priority. These are properties associated with appointment; </span></div>
<div class=ts158p52><span class="ft6p158">however these tasks are independent from the calendar screen.&nbsp; </span></div>
<div class=ts158p55><span class="ft6p158"> </span></div>
<div class=ts158p56><span class="ft8p158">Figure 16.4 </span></div>
<div class=ts158p58><span class="ft6p158"> </span></div>
<div class=ts158p59><span class="ft6p158"> </span></div>
<div class=ts158p60><span class="ft6p158">A TaskList has multiple sections. First there is the add portion at the top of the control. </span></div>
<div class=ts158p61><span class="ft6p158">This may be selectively toggled on/off with the &#147;AllowAdd&#148; property. In Figure 16.4, the </span></div>
<div class=ts158p62><span class="ft6p158">property value is true. The user may click inside this area to start editing a new </span></div>
<div class=ts158p64><span class="ft6p158">appointment. When the &#60;Enter&#62; key is pressed, the task is added to the list. If the </span></div>
<div class=ts158p65><span class="ft6p158">&#60;Esc&#62; key is pressed in this section, the new add is canceled and all information typed </span></div>
<div class=ts158p66><span class="ft6p158">into this section is removed. </span></div>
<div class=styleNavBarBot>
<table width="836" border="0" cellspacing="2">
  <tr></tr>
  <tr>
    <td width="118"><a href="http://www.purepage.com"><img src="./smalllogo.gif" width="118" height="46" border="0" alt="http://www.purepage.com"></a></td>
    <td></td>
  </tr>
</table>
</div>

</td></tr></table>

</body>
</html>
